from django.contrib import admin
from .models import *


# Register your models here.


@admin.register(UserInfo)
class AdminUserInfo(admin.ModelAdmin):
    list_per_page = 50
    search_fields = ['email', 'nickname', 'realName']
    list_filter = ['user_role', 'user_sex']
    list_display = ['email', 'nickname', 'user_role', 'user_sex', 'realName']


@admin.register(UserLog)
class AdminUserLog(admin.ModelAdmin):
    list_per_page = 50
    search_fields = ['related_user']


@admin.register(UserSetting)
class AdminUserSetting(admin.ModelAdmin):
    list_per_page = 50

@admin.register(UserLeaderVerifyForm)
class AdminUserLeaderVerifyForm(admin.ModelAdmin):
    list_per_page = 20
    list_display = ['related_user', 'status', 'create_time']
    list_filter = ['status']
